package com.heima.pojo.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.heima.pojo.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


@ApiModel("新增员工参数模型")
@Data
public class UserDto  {
    @ApiModelProperty("人员id")
    private String id;
    @ApiModelProperty("人员类型id")
    @NotNull(message = "人员类型不能为空")
    private Integer roleId;
    @NotBlank(message = "人员姓名不能为空")
    @ApiModelProperty("人员姓名")
    private String userName;
    @ApiModelProperty("移动电话")
    @NotBlank(message = "人员电话不能为空")
    private String mobile;
    @ApiModelProperty("区域id")
    @NotBlank(message = "区域不能为空")
    private Long regionId;
    @NotBlank(message = "区域名不能为空")
    @ApiModelProperty("区域名")
    private String regionName;
    @ApiModelProperty("人员图片")
    @NotBlank(message = "人员图片不能为空")
    private String image;

    @ApiModelProperty("人员状态")
    private Boolean status;
}
